home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / sound / xmstr105.zip / SPLCMD10.ZIP / SPLITCMD.DOC next >
Text File  |  1992-05-23  |  2KB  |  46 lines

  1.  
  2. A Program to Split the Command Line - by Joy Mukherjee 
  3. ------------------------------------------------------
  4.  
  5. Usage
  6. -----
  7.  
  8. SPLITCMD is a program I hacked together in Turbo Pascal to solve the 
  9. problem of programs which don't accept full path names from the command 
  10. line.  MODPLAY / SUPER Sonic Gram come to mind.
  11.  
  12. Note to authors : This is aggravating!  Make any players support a valid 
  13. path name from the command line!
  14.  
  15. SPLITCMD will split the directory apart from the file name, and the 
  16. drive from the directory.  It will then : 1) switch to that drive; 2) 
  17. change to that directory; 3) run the player as normal with just the 
  18. filename on the command line.
  19.  
  20. MODPlay can handle the file name by itself so this works out nicely.  
  21. Check out the EXBATCH.ARJ to see examples of using SPLITCMD.EXE to play 
  22. a file.  Essentially, it goes like this : Call SPLITCMD instead of your 
  23. normal player with the command :
  24.  
  25. <drive>:\<directory name>\SPLITCMD.EXE %1
  26. call <drive>:\<directory name>\FEB.BAT
  27. del <drive>:\<directory name>\FEB.BAT
  28.  
  29. That is the batch file.  Next, we must configure SPLITCMD for use.  Note :
  30. SPLITCMD can only be configured for one program.  Therefore, keep multiple
  31. copies of SPLITCMD in different directories or rename the program.
  32.  
  33. To configure SPLITCMD, type SPLITCMD /C.
  34.  
  35. It will ask for a directory where you keep the given file name, and the 
  36. program name with any command line parameters.  For example, for 
  37. MODPlay, use your directory, and specify "MP -s" for the program 
  38. name/parameters.  Its that simple!  Check out the examples included in 
  39. the EXBATCH.ARJ for additional help.
  40.  
  41. The program works by creating a batch file called FEB.BAT and then 
  42. running it from the ???PLAY?.BAT that X-MASTER uses.  Contact me on a
  43. support board, the AdLib (Sound Card) conference on FidoNet or write to 
  44. me if you have problems.
  45.  
  46.